import { request } from "umi";

// 规格
export function getSpecList() {
    let params = {
        t:1652281254816,
        current:1,
        size:10
    }
    return request('/prod/spec/page', {
        method:'GET',
        params
    })
}
//删除
export function deletes (id: any) {
    return request(`/prod/spec/${id}`, {
        method:'DELETE',
    })
}
//搜索
export function seach (data: any) {
    return request(`/prod/spec/page?t=1652409336944&current=${data.current}&size=${data.size}&propName=${data.title}`,{
        method: 'GET',
        data: data,
    })
}